﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Data;

namespace Aliyeye.Car.Net.WebService
{
    /// <summary>
    /// Summary description for Base_DepartmentService
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class Base_DepartmentService : BaseWebService
    {
        private BLL.Base_Department Bll = new BLL.Base_Department();

        [SoapHeader("soapHeader")]
        [WebMethod]
        public int Add(Model.Base_Department model)
        {
            return Bll.Add(model);
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public bool Update(Model.Base_Department model)
        {
            return Bll.Update(model);
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public bool Delete(int Id)
        {
            return Bll.Delete(Id);
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public Model.Base_Department GetModel(int Id)
        {
            return Bll.GetModel(Id);
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public DataSet GetList(string strWhere)
        {
            return Bll.GetList(strWhere);
        }
    }
}
